<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_JS运算符</title>
</head>
<body>
<script>
    console.log(1+2);
    console.log(3/2);

    console.log(3>10);
    console.log(3>'10');
    console.log('3'>'10');
    console.log('3'.charCodeAt());
    console.log('10'.charCodeAt());
    console.log('超'.charCodeAt());
    console.log('地'.charCodeAt());
    console.log('超'>'地');

    let a=1;
    let b=true;
    console.log(a == b);
    console.log(a === b);

    let c=0;
    console.log(c == 0 ? 'YES':'NO');
    console.log(c = 0 ? 'YES':'NO');
</script>
</body>
</html>